<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	$(document).ready(function(){
		$("#deleteReviewBoard").click(function(){
			if(confirm("정말 삭제하시겠습니까?")==true){
				location.href="deleteReviewBoard.do?no=${requestScope.rvo.reviewNo }&productId=${requestScope.rvo.productId }";
			}
		})
		$("#updateReviewBoard").click(function(){
			location.href="updateReviewBoardView.do?reviewNo=${requestScope.rvo.reviewNo }";
		})
		$("#returnReviewBoard").click(function(){
			location.href="getProductInfo.do?productId=${requestScope.rvo.productId }"+
					"&consumerId=${requestScope.rvo.consumerId }";
		})
	})
</script>
</head>
<body>


No. ${requestScope.rvo.reviewNo } Title. ${requestScope.rvo.title }
<hr>
Writer. ${requestScope.rvo.consumerId } Date. ${requestScope.rvo.date } Count. ${requestScope.rvo.count }
<hr>

<img src="reviewBoardUpload/${requestScope.rvo.reviewNo }.jpg" width="400" height="200"><br>

${requestScope.rvo.content }
<hr>


<input type="button" value="목록보기" id="returnReviewBoard" class="button">
<c:choose>
	<c:when test="${requestScope.rvo.consumerId==sessionScope.cvo.id}">
		<input type="button" value="수정" id="updateReviewBoard" class="button">
		<input type="button" value="삭제" id="deleteReviewBoard" class="button">
	</c:when>
</c:choose>


</body>
</html>